package com.lgx.mall.core.dao;

import java.util.List;

import com.lgx.common.exception.DataException;
import com.lgx.common.web.Pagination;
import com.lgx.mall.core.entity.Advertisement;

public interface IAdvertisementDao {
	public Advertisement createAdvertisement(Advertisement advertisement)throws DataException;
	public Advertisement updateAdvertisement(Advertisement advertisement)throws DataException;
	public void deleteAdvertisement(Advertisement advertisement)throws DataException;
	public void deleteAdvertisement(long id)throws DataException;
	public Advertisement findAdvertisementById(long id);
	public void deleteAdvertisements(String[] ids)throws DataException;
	
	public List<Advertisement> findAdvertisementList();
	public Pagination findAdvertisementPagination(Object[] params,int pageSize,int pageNum);
	
	/**
	 * 
	 * 
	 * @param areaNode 同城
	 * @param county 县区
	 * @param pageSize
	 * @param pageNum
	 * @return
	 */
	public Pagination findAdvertisementPagination(String areaNode,String county,int pageSize,int pageNum);
}
